﻿package {

	import flash.display.Sprite;
	//import flash.geom.ColorTransform;
	//import BackgroundBox;
		
	public class VideoBtn extends Sprite {
		//private var iBackground:BackgroundBox;
		private var __bgColor:uint;
		private var code:String;
		
		public function VideoBtn(newCode, color:uint) {
			super();
			drawBg(color);
			setACode(newCode);
			//code(newCode)
		}
		
		private function drawBg(color:uint):void {
			//var vpHolder:Sprite = new Sprite();
			//this.addChild(vpHolder);
			//var target:DisplayObjectContainer = obj.parent;
			//if(target == null); target = obj;
			
			
			graphics.lineStyle(1, 0x000000, 0);
			graphics.beginFill(color, 0.0);
			graphics.drawCircle(0, 0, 32);
			graphics.endFill();
			
			//trace(target);
			//target.addChild(this);
			//addChild(this);
		}
		
		public function setACode(newCode:String):void {
				code=newCode
		}
		
		public function getACode(){
			return code;
		}
	}
}